<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
	// 应用调试模式
    'app_debug'              => true,
    
    // 默认全局过滤方法 用逗号分隔多个
    'default_filter'         => 'trim,HTRHtmlspecialchars',

    'log'   => [
        // 可以临时关闭日志写入
        'type'  => 'test',
    ],
    // 视图输出字符串内容替换
    'view_replace_str'       => [
        '__ROOT__'=>str_replace('/index.php','',\think\Request::instance()->root()),
        '__APP__'=>\think\Request::instance()->root(),
        '__STATIC__'=>str_replace('/index.php','',\think\Request::instance()->root()).'/static'
    ]
];
